
<%
String result = (String) request.getAttribute("result");
String name = (String) request.getAttribute("name");
String type = (String) request.getAttribute("type");
String next = "";
if(name!=null)
	next = ", "+type+" "+name+".";
String title="Network tool"+next;
String description=next+"Free online network tools, including traceroute, nslookup, dig, whois, ping, and our own Domain Dossier. Works with IPv6. Some source code included.";
String keyword = "whois,network tool,ping,domain";
%>

<jsp:include page="layout/header.jsp">
	<jsp:param name="title" value="<%=title %>" />
	<jsp:param name="description" value="<%=description %>" />
	<jsp:param name="keywords" value="<%=keyword %>" />
	<jsp:param name="menu" value="network" />
</jsp:include>

<div id="content">

	<div class='search'>
		<form action="/network" method="get">
			<div class="network">
				<label><input type="radio" value="ping" name="type" checked="checked" class="type" <%=type!=null&&type.equals("ping")?"checked=\"checked\"":"" %>/> Ping &nbsp;</label>
				<label><input type="radio" value="lookup" name="type" class="type" <%=type!=null&&type.equals("lookup")?"checked=\"checked\"":"" %>/> Lookup &nbsp;</label>
				<label><input type="radio" value="trace" name="type" class="type" <%=type!=null&&type.equals("trace")?"checked=\"checked\"":"" %>/> Trace &nbsp;</label>
				<label><input type="radio" value="dnsrec" name="type" class="type" <%=type!=null&&type.equals("dnsrec")?"checked=\"checked\"":"" %>/> DNS Records &nbsp;</label>
				<label><input type="radio" value="httphead" name="type" class="type" <%=type!=null&&type.equals("httphead")?"checked=\"checked\"":"" %>/> HTTP Headers &nbsp;</label>
				<label><input type="radio" value="whois" name="type" class="type" <%=type!=null&&type.equals("whois")?"checked=\"checked\"":"" %>/> Whois &nbsp;</label>
			</div>
			<input class="input" type="text" name="url"
				onclick="javascript:if(this.value=='example.com')this.value=''"
				value="example.com">
			<button type="submit">Search</button>
		</form>
		<div class="clear"></div>
		<div class="adv728 clear_div">
			<jsp:include page="/adv/728x90.jsp"></jsp:include>
		</div>
	</div>

	<div>
		<jsp:include page="/adv/728x15.jsp"></jsp:include>
		<%
		if(!"".equals(result))
		{
			out.print(result);
		} else {
		%>
		<p>Free online network tools, including traceroute, nslookup, dig, whois, ping, and our own Domain Dossier. Works with IPv6. Some source code included.</p>
		<p>
       		Network Lookups may be blocked by the various registries. The direct links for ip address network lookups are:<br/>
       		<a rel="nofollow" target="_blank" href="http://whois.arin.net/ui/">Americas (ARIN)</a> | 
       		<a rel="nofollow" target="_blank" href="http://apps.db.ripe.net/search/query.html">Europe (RIPE)</a> | 
       		<a rel="nofollow" target="_blank" href="http://wq.apnic.net/apnic-bin/whois.pl">Asia-Pacific (APNIC)</a> | 
       		<a rel="nofollow" target="_blank" href="http://www.afrinic.net/">Africa (AfriNIC)</a> | 
       		<a rel="nofollow" target="_blank" href="http://lacnic.net/cgi-bin/lacnic/whois">Latin American and Caribbean (LACNIC)</a> | 
       		<a rel="nofollow" target="_blank" href="http://wq.apnic.net/apnic-bin/whois.pl">Asia-Pacific (APNIC)</a> | 
       		<a rel="nofollow" target="_blank" href="http://whois.kisa.or.kr/eng/">Korea (KRNIC)</a>
       	</p>
		<%
		}
		%>
	</div>
</div>

<jsp:include page="layout/footer.jsp"></jsp:include>
